package Day29.bulider;

import java.util.ArrayList;

public class Client {
    public static void main(String[] args) {
        Director director = new Director();
        //各个模型
        System.out.println("奔驰车A---------");
        director.getABenz().run();
        System.out.println("奔驰车B---------");
        director.getBBenz().run();
        System.out.println("宝马C-----------");
        director.getCBaoz().run();
    }

    /*public static void main(String[] args) {
        ArrayList<String> sequence = new ArrayList<>();
        sequence.add("engineBoom");
        sequence.add("start");
        sequence.add("stop");
        //奔驰车
        BenzBuilder benzBuilder = new BenzBuilder();
        benzBuilder.setSequence(sequence);
        Benz benz = (Benz) benzBuilder.getCarModel();
        benz.run();

        System.out.println("=========================");

        //宝马车
        BaozBuilder baozBuilder = new BaozBuilder();
        baozBuilder.setSequence(sequence);
        Baoz baoz = (Baoz) baozBuilder.getCarModel();
        baoz.run();
    }*/

   /* public static void main(String[] args) {
        Benz benz = new Benz();

        ArrayList<String> list = new ArrayList<>();
        list.add("engineBoom");
        list.add("start");
        list.add("stop");
        benz.setSequence(list);
        benz.run();
    }*/
}
